package org.example.extension.postConstruct;

import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import org.springframework.stereotype.Component;

@Component
public class CustomComponent {

    @PostConstruct
    public void init() {
        System.out.println("CustomComponent.init()");
        // custom initialization logic here
    }

    @PreDestroy
    public void cleanup() {
        System.out.println("CustomComponent.cleanup()");
        // custom cleanup logic here
    }
}
